<script>
	export default {
		globalData: {
			key: "drxfdsjcomwssdbc",
			showDialog: false, //首页消息推送查看
		},
		onShow() {
			var args = plus.runtime.arguments;
			if (args) {
				// 处理args参数，如直达到某新页面等 
				let url = args.split('src=')[1];
				uni.navigateTo({
					url: url
				})
			}
		},
		onLaunch: function() {
			var args = plus.runtime.arguments;
			if (args) {
				// 处理args参数，如直达到某新页面等 
				let url = args.split('src=')[1];
				uni.navigateTo({
					url: url
				})
			}
			// 锁定横屏  
			// plus.screen.lockOrientation("landscape-primary");  
			// 锁定竖屏  
			//plus.screen.lockOrientation("portrait-primary");  
			// //#ifdef APP-VUE
			console.log('----> start')
			console.log(uni.getStorageSync('privacy'))
			// if(!uni.getStorageSync('privacy')){
			// 	console.log('未同意')
			// 	//跳转弹窗页
			// 	uni.redirectTo({
			// 		url: '/pages/privacy-agreement-layer/index'
			// 	})
			// }else{
			// 	console.log('进入')
			// 	uni.switchTab({
			// 		url:'/pages/index/index'
			// 	})
			// }
			// //#endif

		},
		
	}
</script>

<style lang="less">
	/*每个页面公共css */
	@import './static/css/uni.css';
	@import "@/static/css/pupop.css";
	@import "@/static/css/productDet.css";
	@import '@/components/feng-parse/parse.css';

	/* page{max-width: 750rpx; margin: 0 auto;} */
	.flex {
		display: flex;
	}

	.flex-align {
		display: flex;
		align-items: center;
	}

	.flex-justify {
		display: flex;
		justify-content: center;
	}

	.flex-center {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.flex-space {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.flex-dir {
		flex-direction: column;
	}

	.nocontent {
		width: 100%;
		font-size: 15px;
		text-align: center;
		padding-top: 160rpx;
		color: #999999;
		line-height: 50px;

		.wsjImg {
			width: 180px;
			height: 125px;
			margin: 0 auto;
		}
	}

	.fwb img {
		width: calc(100% - 15rpx) !important;
	}

	/* 按钮蓝色 */
	.blue-btn {
		width: 100%;
		height: 98rpx;
		text-align: center;
		line-height: 98rpx;
		background: #585CF7;
		border-radius: 44rpx;
		font-size: 36rpx;
		color: #FFFFFF;
	}
	
	

	
	.van-dropdown-menu {
		box-shadow: none !important;
	padding-right: 15px !important;
	}
	
	.van-dropdown-item van-popup {
		max-height: 400rpx;
		touch-action: auto;
	}
	
	.van-ellipsis {
		font-size: 26rpx;
		color: #999999;
	}
	.van-popup--top {
		max-height: 400rpx !important;
	}
</style>

